import http from '@/utils/http.js';

//获取用户优惠券列表
export function getCouponList(params) {
	return http.get('/auth/coupon/getUserCoupon/page', params);
}

//获取订单可用优惠券
export function getOrderCoupon(params) {
	return http.get('/auth/coupon/getUserCoupon/order', params);
}

//获取可领取优惠券列表
export function getCouponListByReceive(params) {
	return http.get('/auth/coupon/getCoupon/page', params);
}

//领取优惠券
export function receiveCoupon(data) {
	return http.put('/auth/coupon/getAppCouponUser', data);
}